from myelin.Ns import MYELIN, HTTP
from myelin.rdf.bindery.ObjectTypes import ResourceTypeO, LiteralTypeO

from Document import Document

from ObjectTypes import \
    ErrorDocumentTypeO, ErrorDocumentTypeS

from mappings import \
    ErrorDocumentMap


class ErrorDocument(Document):
    
    ModelTypes = (ErrorDocumentTypeO, ErrorDocumentTypeS)
    
    RDF_BINDINGS = {
        'hError_Code'       : ((HTTP, 'error-code'), LiteralTypeO, ErrorDocumentMap),
    }


CLASS_TYPES = {
    MYELIN + 'ErrorDocument' : ErrorDocument,
}